package com.situ.crm.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.situ.crm.service.TestService;

@RestController
@RequestMapping(value = "/")
public class TestController {

	@Autowired
	private TestService testService;

	@GetMapping(value = "/test")
	public String test() {
		return "Hello world123123";
	}

	@GetMapping(value = "/test2")
	public String test2() {
		testService.doSomething();
		return "test2 执行完了";
	}
}
